package com.kfpanda.search.batch.job;

import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.NonTransientResourceException;
import org.springframework.batch.item.ParseException;
import org.springframework.batch.item.UnexpectedInputException;

public class FileIndexReader implements ItemReader<String>{
	
	private long increm = 0;
	private boolean flag = false;
	
	@Override
	public String read() throws Exception, UnexpectedInputException,
			ParseException, NonTransientResourceException {
		String sayHello = "say hello " + increm;
		if(flag){
			return null;
		}
		flag = true;
		return sayHello;
	}

}
